﻿#region Opis pliku
//-----------------------------------------------------------------------------
// HeliBulletParticle.cs
// Autor: Jan Fraś
// 30.10.2012
//-----------------------------------------------------------------------------
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;


namespace pogra
{
    class HeliBulletParticle:Particle
    {
        public HeliBulletParticle(Vector2 Position, float Velocity, float rotation):
            base(null, Position, Velocity, rotation,TimeSpan.FromMilliseconds(100))
        {
           // TimeSpan.FromSeconds(0.2);
        }

        override public void Draw(ExtendedSpriteBatch exSpriteBatch)
        {
            int  size = 1;
            float alpha = (float)(life.TotalMilliseconds / startLife.TotalMilliseconds);
            exSpriteBatch.FillRectangle(new Rectangle((int)(Position.X - size / 2), (int)(Position.Y - size / 2), size, size), Color.White * alpha*alpha);
        }

    }
}
